var a = getApp();

Page({
    data: {},
    onLoad: function(a) {
        this.getdata();
    },
    goNotes: function(a) {
        console.log(a);
        var e = a.currentTarget.dataset.id;
        wx.navigateTo({
            url: "/packageE/energy/powerCancellation/powerCancellation?id=" + e
        });
    },
    gocard: function(a) {
        console.log(a);
        var e = a.currentTarget.dataset.id;
        wx.navigateTo({
            url: "/packageE/energy/cardDetail/cardDetail?id=" + e
        });
    },
    gofamily: function() {
        wx.navigateTo({
            url: "/packageE/energy/familyMember/familyMember"
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    getdata: function() {
        var e = a.getNetAddresss("plugin.energy-cabin.frontend.user-terminal.member-card"), n = this;
        a._getNetWork({
            url: e,
            success: function(a) {
                var e = a.data;
                1 == e.result && (console.log(e), n.setData({
                    family_card_pic: e.data.family_card_pic,
                    once_card_pic: e.data.once_card_pic,
                    time_card_pic: e.data.time_card_pic,
                    familyCard: e.data.familyCard,
                    onceCard: e.data.onceCard,
                    timeCard: e.data.timeCard,
                    result: e.data
                }));
            },
            fail: function(a) {
                console.log(a);
            }
        });
    }
});